home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
russell
/
russell.lha
/
examples
/
extern_test.r
< prev
next >
Wrap
Text File
|
1989-12-29
|
267b
|
11 lines
let
fork == func[var Void] val Short { extern "_fork" };
sleep == func[val Short; var Void] val Void { extern "_sleep" };
pid == fork[];
in
if
pid = 0 ==> sleep[5]; put["Child here\n"];
# pid <> 0 ==> sleep[10]; put["Parent here\n"];
fi
ni